setAnchorView

open fun setAnchorView(@Nullable anchor: @Nullable View)(source)

Sets the popup's anchor view. This popup will always be positioned relative to the anchor view when shown.

Parameters

anchor

The view to use as an anchor.